# -*- encoding=utf8 -*-
__author__ = "wangnan"
from airtest.cli.parser import cli_setup
from airtest.core.api import auto_setup

from airtest.core.api import auto_setup
from airtest.report.report import simple_report

from module.introduction import Logout
from module.login import Login_APP
from module.start import StartApp

if not cli_setup():
    auto_setup(__file__, logdir=True, devices=["Android:///",])
# 设置日志目录
auto_setup(__file__,logdir="./log")

kuke = StartApp()
kuke.start()
# 登录
phone = '19233829732'
password = 'wn123456789'
username = '测试'
kuke = Login_APP(phone, password, username)
kuke.login()
# 退出登录操作
kuke = Logout()
kuke.logout()

simple_report(__file__,logpath=True,logfile='log.txt',output='log.html')
